package com.GLM.Constants;

public class Constant {
	// message pic url - middle
	public final static String URL_MESSAGEPIC_MIDDLE = "http://www.glemei.com/Upload/message/middle/";
	public final static String URL_MESSAGEPIC_SMALL = "http://www.glemei.com/Upload/message/small/";
	public final static String URL_MESSAGEPIC_BIG = "http://www.glemei.com/Upload/message/big/";
	public final static String URL_MSGGROUP_SMALL = "http://www.glemei.com/Upload/msgGroup/small/";
	public final static String URL_MSGGROUP_BIG = "http://www.glemei.com/Upload/msgGroup/big/";
	public final static String URL_USER_SMALL = "http://www.glemei.com/Upload/user/small/";
	public final static String URL_USER_BIG	= "http://www.glemei.com/Upload/user/big/";
	public final static String URL_USER_MIDDLE = "http://www.glemei.com/Upload/user/middle/";
	public final static String URL_PARTY_COMMENT = "http://www.fangchemei.cn/Upload/message/big/android_upload.php";
	public final static String URL_USER_AVAR = "http://www.fangchemei.cn/Upload/user/big/android_avatar_upload.php";
	
	public final static int SPLASH_DISPLAY_LENGTH = 1500;
	public final static int ACTIVITY_REQUESTCODE_ALBUM = 1008611;
	public final static int ACTIVITY_REQUESTCODE_TAKEPICTURE = 1008612;
	public final static int ACTIVITY_REQUESTCODE_NEWAVATER = 1008613;
	public final static int ACTIVITY_REQUESTCODE_MAP = 1008614;
	// Animations
	public final static int ANIM_DURATION = 2000;
	public final static int ANIM_DELAY = 4000;
	public final static int ANIM_CONTAINER1_VISIABLE = 0;
	public final static int ANIM_CONTAINER1_GONE = 1;
	public final static int ANIM_CONTAINER2_VISIABLE = 2;
	public final static int ANIM_CONTAINER2_GONE = 3;
	public final static int ANIM_CONTAINER3_VISIABLE = 4;
	public final static int ANIM_CONTAINER3_GONE = 5;
	public final static int ANIM_FRAME_COUNT = 6;
	// register data
	public final static String REGISTER_DATA = "restoreData";
	public final static String REGISTER_DATA_USERNAME = "username";
	public final static String REGISTER_DATA_PASSWORD = "password";
	public final static String REGISTER_DATA_NICKNAME = "nickname";
	public final static String REGISTER_DATA_EMAIL = "email";
	public final static String REGISTER_DATA_AVATER = "avater";
	// map
	public final static int ATTEMPT_COUNT = 5;
	public final static String LOCATION = "location";
	public final static String ADDRESS = "address";
	// main view
	public final static String UNREAD_SMS = "unReadSms";
	public final static String UNREAD_MEET_MSG = "UnReadMeetMsg";
	public final static String UNREAD_RING_MSG = "UnReadRingMsg";
	public final static String UNREAD_RINGIV_MSG = "unReadRingivMsg";
	// DataBase
	public final static int DATABASE_VERSION = 1;
	public final static String DATABASE_NAME = "GLM.dbo";
	public final static String TABLE_USERINFO = "GLM_UserInfo";
	// DataBase - GLM_UserInfo
	public final static String COLUMN_USERID = "UserId";
	public final static String COLUMN_USERACCOUNT = "UserAccount";
	public final static String COLUMN_PASSWORD = "Password";
	public final static String COLUMN_NICKNAME = "NickName";
	public final static String COLUMN_EMAIL = "Email";
	public final static String COLUMN_LATITUDE = "latitude";
	public final static String COLUMN_LONGITUDE = "longitude";
	public final static String COLUMN_USERAVATAR = "UserAvatar";
	public final static String COLUMN_USERAVATARURL = "UserAvatarUrl";
	// Intent
	public final static String INTENT_USER_ID = "user_id";
	// Message
	public final static String MESSAGE_CURRENT_USERID = "current_userId";
	public final static String MESSAGE_ENTITY = "entity";

	// JSON - request
	public final static String PARAM_ACCOUNT = "account";
	public final static String PARAM_PASSWORD = "password";
	public final static String PARAM_NICKNAME = "nickname";
	public final static String PARAM_EMAIL = "email";
	public final static String PARAM_AVATAR = "avatar";
	public final static String PARAM_LONGITUDE = "long";
	public final static String PARAM_LATITUDE = "lati";
	public final static String PARAM_LOCATIONID = "loc_id";
	public final static String PARAM_LOOKAROUND_DATE = "msg_date";
	public final static String PARAM_LOOKAROUND_PAGE = "msg_page";
	public final static String PARAM_USERID = "user_id";
	public final static String PARAM_USERID_ONE = "userID";
	public final static String PARAM_MSGID = "msg_id";
	public final static String PARAM_CIRCLE_NAME = "ring_name";
	public final static String PARAM_COMMENT_CONTENT = "content";
	public final static String PARAM_MGID = "mg_id";
	public final static String PARAM_CLASSID = "classID";
	public final static String PARAM_FRIENDS_CLASS = "class";
	public final static String PARAM_RGID = "rg_id";
	public final static String PARAM_SMS_RECID = "rec_id";
	public final static String PARAM_RING_ID = "ring_id";
	public final static String PARAM_GROUP_RGNAME = "rg_name";
	public final static String PARAM_SMSCONTENT = "sms_content";
	public final static String PARAM_SMS_RECUSERID = "sms_rec_user_id";
	public final static String PARAM_SMS_SENDUSERID = "sms_send_user_id";
	
	// JSON - response
	public final static String RESP_STATUS = "state";
	public final static String RESP_USERID = "user_id";
	public final static String RESP_USERACCOUNT = "account";
	public final static String RESP_FIRSTLOGIN_SHOWDATA = "showData";
	public final static String RESP_LOGINUSERID = "userID";
	public final static String RESP_LOCID = "loc_id";
	public final static String RESP_ALLMSG = "allMsg";
	public final static String RESP_UNREAD_SMS = "unReadSms";
	public final static String RESP_UNREAD_MEET = "meetData";
	public final static String RESP_UNREAD_RING = "ringData";
	public final static String RESP_MESSAGE_MYMSG = "msgData";
	public final static String RESP_UNREAD_RINGIV = "ring_iv";
	public final static String RESP_MESSAGE_RINGMSG = "ringMsg";
	public final static String RESP_MESSAGE_ALLREVIEWS = "allReviews";
	public final static String RESP_USERINFO_DETAIL = "accountDetail";
	public final static String RESP_CIRCLE_MYFRIENDS = "friendsList";
	public final static String RESP_RING_LIST = "ringAry";
	public final static String RESP_RING_DATA = "ringData";
	public final static String RESP_PATTY_LIST = "meetData";
	public final static String RESP_PARTY_USERS = "usersData";
	public final static String RESP_PARTY_COMMENTS = "reviewsData";
	public final static String RESP_FRIENDS_GROUPS = "groupMsg";
	public final static String RESP_GROUP_MEMBER = "usersList";
	public final static String RESP_FRIENDS_SMS = "smsData";
	public final static String RESP_NICKNAMEDATA = "nicknameData";
	public final static String RESP_USERDATA = "userData";
	public final static String RESP_LOCDATA = "locData";

	public final static int RESP_STATUS_SUCCESS = 2;
	public final static int RESP_STATUS_FAIL = 1;
	public final static int RESP_STATUS_REGISTER_USERNAME_CANUSE = 1;
	public final static int RESP_STATUS_REGISTER_USERNAME_EXIST = 2;
	public final static int RESP_STATUS_REGISTER_NICKNAME_USED = 2;

	public final static int RESP_STATUS_CIRCLENAME_EXIST = 2;

	public final static int REQ_WAY_LOGIN = 1;
	public final static int REQ_WAY_ISUSEREXIST = 2;
	public final static int REQ_WAY_REGISTER = 3;
	public final static int REQ_WAY_ISNICKNAMEUSED = 4;
	public final static int REQ_WAY_SEARCHFRIENDS = 6;
	public final static int REQ_WAY_GETFRIENDLIST = 8;

	public final static int REQ_WAY_STORECOMMENT = 9;
	public final static int REQ_WAY_CREATENEWPARTY = 10;
	public final static int REQ_WAY_SENDSMS = 11;
	public final static int REQ_WAY_GETMYCIRCLELIST = 13;
	public final static int REQ_WAY_ISCIRCLENAMEUSED = 14;
	public final static int REQ_WAY_CREATECIRCLE = 15;
	public final static int REQ_WAY_USERINFO = 17;
	public final static int REQ_WAY_GETFRIENDSGROUPS = 19;
	public final static int REQ_WAY_UNREADSMS = 20;
	public final static int REQ_WAY_UNREADMEETMSG = 21;
	public final static int REQ_WAY_UNREADRINGMSG = 22;

	public final static int REQ_WAY_MESSAGE_MY = 26;
	public final static int REQ_WAY_RRROLE = 27;	
	public final static int REQ_WAY_QUITECIRCLE = 28;
	public final static int REQ_WAY_MESSAGE_RING = 29;
	public final static int REQ_WAY_LOOKAROUND = 30;
	public final static int REQ_WAY_LIKEMESSAGE = 31;
	public final static int REQ_WAY_MESSAGECOMMENT = 32;
	public final static int REQ_WAY_GETMESSAGECOMMENTS = 33;

	public final static int REQ_WAY_GETPARTYSTORECOMMENTS = 36;
	public final static int REQ_WAY_GETGROUPMEMBER = 37;
	public final static int REQ_WAY_REMARKUSER = 39;
	public final static int REQ_WAY_GETPARTYJOURNEY = 40;
	public final static int REQ_WAY_GETPARTYCOMMENTS = 41;
	public final static int REQ_WAY_GETFRIENDSSMSTALK = 42;
	public final static int REQ_WAY_GETSEARCHCIRCLE = 43;
	public final static int REQ_WAY_DELETEFRIENDGROUP =44;
	public final static int REQ_WAY_GETPARTYUSERS = 45;
	public final static int REQ_WAY_GETCIRCLEMESSAGE = 46;
	public final static int REQ_WAY_GETFRIENDSSMS = 47;
	public final static int REQ_WAY_GETUSERDETAILINFO = 48;
	public final static int REQ_WAY_GETLOCATIONID = 49;
	public final static int REQ_WAY_COMMENTPARTY = 50;
	public final static int REQ_WAY_GETSTOREINFOS = 52;
	public final static int REQ_WAY_STORELIKE = 53;
	public final static int REQ_WAY_SAVESETTING = 54;
	public final static int REQ_WAY_FIRSTLOGIN_ANIM = 55;
	public final static int REQ_WAY_MERCHANT = 56;
	public final static int REQ_WAY_SEARCHSTORE = 57;
	public final static int REQ_WAY_LOCATION_PROVINCE = 58;
	public final static int REQ_WAY_LOCATION_CITY = 59;
	public final static int REQ_WAY_GETCIRCLEFRIENDS = 61;
	public final static int REQ_WAY_FORGETPASSWORD = 64;
	public final static int REQ_WAY_GROUPFRIENDS = 67;
	//SharedPreferences
	public final static String SHAREDNAME = "com.GLM.Viewer";
	
	/*
	 * startActivityForResult use these 
	 */
	// Party
	public final static int CREATE_PARTY_TIME_CODE = 1;
	public final static int CREATE_PARTY_FRIEND_CODE = 2;
	public final static int PARTY_STORE_LOCATE_CODE = 3;
	public final static int PARTY_HISTORY_REBUILDPARTY = 4;
	//friend
	public final static int FRIENDS_GROUPS_MODIFY = 1;
	//circle
	public final static int CIRCLE_INVITE_FRIENDS = 1;
	//user setting
	public final static int SETTING_BIRTHDAY_CODE = 1;	
	public final static int SETTING_LOCATION_CODE = 2;
	public final static int SETTING_AVATAR_CODE = 3;
	
	public final static String MAINACTIVITY = "mainActivity";
	public final static String PARTYMAINACTIVITY = "partyActivity";
	public final static String PARTYPLACEACTIVITY = "partyPlaceActivity";
	public final static String MEETINGPLACEACTIVITY = "MeetingPlaceActivity";
	public final static String MESSAGEACTIVITY = "MessageActivity";
	public final static String FANSFRIENDACTIVITY = "FansFriendsActivity";
	public final static String FRIENDGROUPACTIVITY = "friendsGroupActivity";
	
}
